
/* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

京东云解析OpenAPI接口
京东云解析OpenAPI接口

OpenAPI spec version: v1
Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/

#import <Foundation/Foundation.h>

#import <JDCloudOCSDKClouddnsservice/ClouddnsserviceExecutor.h>


/// 删除主域名
@implementation  ClouddnsserviceDelDomainExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"DELETE";
    self.url = @"/regions/{regionId}/domainDel";
    return self;
}
@end

/// 查看主域名的解析次数
@implementation  ClouddnsserviceGetDomainQueryCountExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/domain/{domainId}/queryCount";
    return self;
}
@end

/// 同一个主域名下，批量新增或者批量更新导入解析记录。
   /// 如果解析记录的ID为0，是新增解析记录，如果不为0，则是更新解析记录。
   /// 
@implementation  ClouddnsserviceBatchSetDnsResolveExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/BatchSetDnsResolve";
    return self;
}
@end

/// 查看用户在云解析服务下的操作记录
@implementation  ClouddnsserviceGetActionLogExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/log/actionLog";
    return self;
}
@end

/// 查看域名的查询流量
@implementation  ClouddnsserviceGetDomainQueryTrafficExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/domain/{domainId}/queryTraffic";
    return self;
}
@end

/// 监控项的操作集合，包括：删除，暂停，启动, 手动恢复, 手动切换
@implementation  ClouddnsserviceOperateMonitorExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/domain/{domainId}/monitorOperate";
    return self;
}
@end

/// 添加主域名的自定义解析线路的IP段
@implementation  ClouddnsserviceAddUserViewIPExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/userview/addUserViewIP";
    return self;
}
@end

/// 添加子域名的某些特定监控对象为监控项
@implementation  ClouddnsserviceAddMonitorTargetExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/domain/{domainId}/monitorAddTarget";
    return self;
}
@end

/// 添加主域名的解析记录
@implementation  ClouddnsserviceAddRRExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/domain/{domainId}/RRAdd";
    return self;
}
@end

/// 删除主域名的自定义解析线路
@implementation  ClouddnsserviceDelUserViewExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/userview/delUserView";
    return self;
}
@end

/// 启用、停用、删除主域名下的解析记录
@implementation  ClouddnsserviceOperateRRExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/domain/{domainId}/RROperate";
    return self;
}
@end

/// 删除主域名的自定义解析线路的IP段
@implementation  ClouddnsserviceDelUserViewIPExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/userview/delUserViewIP";
    return self;
}
@end

/// 查看主域名的监控项的配置以及状态
@implementation  ClouddnsserviceGetMonitorExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/domain/{domainId}/monitor";
    return self;
}
@end

/// 域名的监控项修改
@implementation  ClouddnsserviceUpdateMonitorExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/domain/{domainId}/monitorUpdate";
    return self;
}
@end

/// 查询主域名的自定义解析线路的IP段
@implementation  ClouddnsserviceGetUserViewIPExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/userview/getUserViewIP";
    return self;
}
@end

/// 查询子域名的可用监控对象
@implementation  ClouddnsserviceGetTargetsExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/domain/{domainId}/getTargets";
    return self;
}
@end

/// 主域名的监控项的报警信息
@implementation  ClouddnsserviceGetMonitorAlarmInfoExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/domain/{domainId}/monitor/alarminfo";
    return self;
}
@end

/// 添加子域名的监控项，默认把子域名的所有监控项都添加上监控
@implementation  ClouddnsserviceAddMonitorExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/domain/{domainId}/monitorAdd";
    return self;
}
@end

/// 修改主域名
@implementation  ClouddnsserviceUpdateDomainExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/domainUpdate";
    return self;
}
@end

/// 修改主域名的某个解析记录
@implementation  ClouddnsserviceUpdateRRExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/domain/{domainId}/RRUpdate";
    return self;
}
@end

/// 添加主域名的自定义解析线路
@implementation  ClouddnsserviceAddUserViewExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/userview/addUserView";
    return self;
}
@end

/// 查询主域名的解析记录。  
   /// 在使用解析记录相关的接口之前，请调用此接口获取解析记录的列表。
   /// 
@implementation  ClouddnsserviceSearchRRExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/domain/{domainId}/RR";
    return self;
}
@end

/// 查询主域名的自定义解析线路
@implementation  ClouddnsserviceGetUserViewExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/userview/getUserView";
    return self;
}
@end

/// 获取用户所属的主域名列表。   
   /// 请在调用域名相关的接口之前，调用此接口获取相关的domainId和domainName。  
   /// 主域名的相关概念，请查阅&lt;a href&#x3D;&quot;https://docs.jdcloud.com/cn/jd-cloud-dns/product-overview&quot;&gt;云解析文档&lt;/a&gt;
   /// 
@implementation  ClouddnsserviceGetDomainsExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/domain";
    return self;
}
@end

/// 添加主域名  
   /// 如何添加免费域名，详细情况请查阅&lt;a href&#x3D;&quot;https://docs.jdcloud.com/cn/jd-cloud-dns/domainadd&quot;&gt;文档&lt;/a&gt;
   /// 添加收费域名，请查阅&lt;a href&#x3D;&quot;https://docs.jdcloud.com/cn/jd-cloud-dns/purchase-process&quot;&gt;文档&lt;/a&gt;，
   /// 添加收费域名前，请确保用户的京东云账户有足够的资金支付，Openapi接口回返回订单号，可以用此订单号向计费系统查阅详情。
   /// 
@implementation  ClouddnsserviceAddDomainExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/domainAdd";
    return self;
}
@end

/// 查询云解析所有的基础解析线路。  
   /// 在使用解析线路的参数之前，请调用此接口获取解析线路的ID。
   /// 
@implementation  ClouddnsserviceGetViewTreeExecutor

-(id) initWithJDCloudClient:(ClouddnsserviceClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/domain/{domainId}/viewTree";
    return self;
}
@end
